package day04.interFace1;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/22
 */
public class Manager extends Person implements Add{
    private String level;

    public Manager() {
    }

    public Manager(String name,String address,String level,double wage) {
        super(name,address,wage);
        this.level = level;
    }

    /**
     * 获取
     * @return level
     */
    public String getLevel() {
        return level;
    }

    /**
     * 设置
     * @param level
     */
    public void setLevel(String level) {
        this.level = level;
    }

    public String toString() {
        return "Manager{name="+getName()+",address="+getAddress()+",level = " + level + "}";
    }

    @Override
    public double add(double salary) {
        this.setWage(salary*1.2);
        return this.getWage();
    }
}
